#include "zevent/event.hpp"
#include <cstdio>
ZEVT_TYPE(t1, int);

ZEVT_TYPE(t3, const char *, int);

int main(int argc, const char **argv) {
  puts("test\n");
  t3::Publish("hello world from t3 before", 333);
  t3::Connect([](const char *str, int a) { printf("%s %d\n", str, a); });
  t3::Connect(
      [](const char *str, int a) { printf("another %s %d\n", str, a); });
  t3::Publish("hello world from t3 after", 333);
  t1::Connect([](int a) { printf("hello world %d\n", a); },
              [](int a) { printf("hello world %d\n", a); });
  t1::Publish(666);
  return 0;
}